import { AuthRouter } from "../component/AuthRouter";
import { Home } from "../pages/home";
import { Layout } from "../pages/layout";
import { Login } from "../pages/login";
import { Appointments } from "./modules/appointment";
import { Arranges } from "./modules/arrange";
import { Customer } from "./modules/customer";
import { Dictionarys } from "./modules/dictionary";
import { Mobile } from "./modules/mobile";
import { Orders } from "./modules/order";
import { Organizations } from "./modules/organization";
import { Products } from "./modules/product";
import { Promotions } from "./modules/promotion";



const routes = [{
    path: "/login",
    element: <Login></Login>
}, {
    path: "/",
    element: <AuthRouter><Layout></Layout></AuthRouter>,
    meta: {
        title: "仪表盘"
    },
    children: [{
        path: "home",
        meta: {
            title: "控制台"
        },
        element: <Home></Home>
    },
        Orders, Products,Appointments,Organizations,Arranges,
        Customer,Promotions,Mobile,Dictionarys
    ]
}

]

export default routes;